<?php 
/**
* @version 1.5.x
* @package JoomVision Project
* @email webmaster@joomvision.com
* @copyright (C) 2008 http://www.JoomVision.com. All rights reserved.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.mootools');
$document = &JFactory::getDocument();
$css = JURI::base().'modules/mod_jv_headline/assets/css/vertical.css';
$js = JURI::base().'modules/mod_jv_headline/assets/js/vertical.js';
$document->addStyleSheet($css);
JHTML::_('stylesheet','jvslidesmooth_css.php?id='.$module->id.'&amp;width='.$slide_width.'&amp;height='.$height,'modules/mod_jv_headline/assets/css/');
$document->addScript($js);
?>
<script type="text/javascript">
  window.addEvent('load',function(){
        var jvSlide = new JVVerHeadLine({
            slideOuter:'<?php echo $slideOuter; ?>',
            slideBarItem:'<?php echo $slideBarItem; ?>',
            slideDelay:'<?php echo $slideDelay; ?>',
            duration:<?php echo $params->get('trans_duration'); ?>
        });
    })
</script>
<div style="display: none;">Developed by <a href="http://www.joomvision.com" title="Joomla Templates, Joomla Extentions">JoomVision.com</a></div>
<div id="<?php echo $divHeadLine; ?>" class="jv_vheadline_wrap">
<div class="jv-maskslide" style=" <?php  echo $css_width; ?>;<?php echo $css_height; ?>">
<div id="slide_wrapper<?php echo $module->id; ?>">
<div id="slide_outer<?php echo $module->id ; ?>" class="slide_outer">
    <?php foreach($slides as $item){?>
    <div class="slide" style="<? echo $css_width; ?>;<? echo $css_height; ?>;opacity:0"> 
        <div class="slide_inner">           
                <span>
                <span style="background: transparent url(<?php echo $item->path; ?>) no-repeat scroll 0% 0%;">
                    <span>
                    <?php if($item->thumbl) { ?>
                    <img alt="" width="<?php echo $slide_width ?>" height="<?php echo $height; ?>" src="<?php echo $item->thumbl; ?>" />
                    <?php } ?>
                </span></span></span>           
            <div class="jv_vheadline_intro">
                <div class="slidetext">
                <h1 class="slide_title"><a href="<?php echo $item->link; ?>" ><?php echo $item->title; ?></a></h1> 
                <p><?php echo $item->introtext; ?></p>
                </div>
            </div>
        </div>       
    </div> 
     <?php } ?>   
</div></div>
</div>
<div id="jv_pagislide<?php echo $module->id; ?>" class="jv-pagislide" style="<?php echo $css_height; ?>;<?php echo $css_slidebar_width; ?>">
<?php foreach($slides as $item) { ?>
    <div class="slideitem" style="<?php echo $css_item_heigth; ?>">
       <?php if($item->thumbs !=''){ ?>
        <img width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" border="0" alt="" src ="<?php echo $item->thumbs; ?>" />
       <?php } ?> 
       <a class="slidetitle" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>     
       <p class="slidedes"><?php echo $item->introtext; ?></p>
    </div>
<?php } ?>
</div>    
</div>
